<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?
  include "conexao.php" ;
  $conec ;
  $bco ;
  
  $codigo = $_POST['txcod'] ;
  $nome = $_POST['txnome']  ;
  $descricao= $_POST['txdesc']  ;
  $valor = $_POST['txvalor']  ;

  include "cabecalho.php" ;

  $stgsql = $conec->prepare("update pizzas 
								 set codigo=\"$codigo\",
								 nome=\"$nome\",
								 descricao=\"$descricao\",
								 valor=\"$valor\"
							   where codigo = \"$codigo\"");  
	$stgsql->execute();
	
	if ($stgsql->rowCount() > 0) {
	  include "sucessoalteracaopizza.php" ;
	} else {
	  include "erroalteracaopizza.php" ;
	  
	}
			
    include "rodape.php" ;

?>
</body>
</html>
